package com.peycard.persistence.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;


/**
 * The persistent class for the SIGNATURE database table.
 * 
 */
@Entity
public class Signature implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ID_SIGNATURE_GENERATOR", sequenceName="ID_SIGNATURE_GENERATOR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ID_SIGNATURE_GENERATOR")
	@Column(name="ID_SIGNATURE")
	private long idSignature;

	@Column(name="EMAIL")
	private int email;

    @Lob()
	private byte[] serializacion;

    @Column(name="TOKEN")
	private String token;
    
    @Column(name="VALUE_EMAIL")
	private String valueEmail;
	
    public Signature() {
    }

	public long getIdSignature() {
		return this.idSignature;
	}

	public void setIdSignature(long idSignature) {
		this.idSignature = idSignature;
	}

	public int getEmail() {
		return this.email;
	}

	public void setEmail(int email) {
		this.email = email;
	}

	public byte[] getSerializacion() {
		return this.serializacion;
	}

	public void setSerializacion(byte[] serializacion) {
		this.serializacion = serializacion;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getValueEmail() {
		return valueEmail;
	}

	public void setValueEmail(String valueEmail) {
		this.valueEmail = valueEmail;
	}

}